package com.dz.mapper;

import com.dz.annotation.AutoFill;
import com.dz.entity.User;
import com.dz.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 鄧浩奇
 * @classname UserMapper
 * @description
 * @since 2024/1/6 18:50
 **/

@Mapper
public interface UserMapper {

    User selectByOpenId(String openId);

    @AutoFill(OperationType.INSERT)
    void insert(User user);

    User selectById(Long userId);

}
